package com.purchase.ml.bean.req.order;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Created by kyyang on 2021/3/9 22:17
 */
@Data
public class OrderEditReq {

    @NotNull(message = "Penomboran pesanan tidak boleh kosong")
    private Long oid;

    @NotBlank(message = "Status pesanan tidak boleh kosong")
    @Pattern(regexp = "^(0|1|2|3|4|5|-2)$" ,message = "Status pesanan hanya dalam indeks 0|1|2|3|4|5|-2")
    private String state;

}
